export default
    [
        {
          path: '/Index',
          name: 'index',
          meta:{title:'考勤管理'},
          component:()=>import('../components/Index.vue'),
          children:[
            {
              path:'/Index/Business',
              name:'business',
              meta: {title:'出差申请', permission: 11 },
              component:()=>import('../components/Index/Business.vue')
            },
            {
              path:'/Index/Outside',
              name:'outside',
              meta: {title:'外勤打卡', permission: 12 },
              component:()=>import('../components/Index/Outside.vue')
            },
            {
              path:'/Index/Leave',
              name:'leave',
              meta: {title:'请假申请', permission: 13 },
              component:()=>import('../components/Index/Leave.vue')
            },
            {
              path:'/Index/Work',
              name:'work',
              meta: {title:'加班申请', permission: 14 },
              component:()=>import('../components/Index/Work.vue')
            },
            {
              path:'/Index',
              redirect:'/Index/Business'
            },
            {
              path: '/index/:error(.*)',
              component: () => import('../views/NotFound.vue')
          },
          ]
        },
        {
          path:'/Register',
          name:'register',
          meta:{title:'考勤管理-注册',permission: 2},
          component:()=>import('../components/Register.vue')
        },

    ]
